from cmath import log

'''
print("hello world and git")
print("hhh")
'''
# 错误示范
'''
x=0if x > 0:
print("正数");print("是大于0的数")
if x < 0:print("负数")
'''
# 以下为正确示范
'''
x = 1
if x > 0:
    print("正数");print("是大于0 的数")
if x < 0:print("负数")
'''
# print("""reku""")
# 测试输入
"""
name=input()
print(name)
"""
# 运算符
"""
x=13
x**=3
w=log(100,10)
print(w)
"""
# print("\a")#响铃

# 乘法表
"""
for i in range(1,10):
    print()
    for j in range(1,i+1):
        # 以下两种都可
        # print(f"{j}*{i}={i*j}\t",end="")
        print('{}x{}={}\t'.format(j,i,i*j),end=" ")
"""
#
"""
import time

for i in range(101): # 添加进度条图形和百分比
    bar = '[' + '=' * (i // 2) + ' ' * (50 - i // 2) + ']'
    print(f"\r{bar} {i:3}%", end='', flush=True)
    time.sleep(0.05)
print()
"""
"""
shi = 10
print(bin(shi)) #十进制转2进制
binary = 0b10101
print(int(binary))#2进制转十进制
hexnum =0xa12f
print(int(hexnum))#16进制转10进制
octnum = 0o1251
print(int(octnum))#八进制转十进制
"""
#字符串
"""
string = "12345ABCD"
print(string[1])
print(string[3:5])
print(string[-5:-1])#仍然是从左到右截取
print(string[1::-1])#从一开始全部倒序输出
print(string[1:5:2])#显示下标[1,5)且间隔一个显示
"""
